import 'package:ai_desktop_eidtor/login/login_view.dart';
import 'package:ai_desktop_eidtor/main/book/book_view.dart';
import 'package:ai_desktop_eidtor/main/create/create_view.dart';
import 'package:ai_desktop_eidtor/main/editor/editor_view.dart';
import 'package:ai_desktop_eidtor/main/home/home_view.dart';
import 'package:ai_desktop_eidtor/register/register_view.dart';
import 'package:get/get.dart';

import '../main/book/book_detail/book_detail_view.dart';

class AppPage {
  static List<GetPage> pages = [
    GetPage(name: RouteName.login, page: () => LoginPage()),
    GetPage(name: RouteName.register, page: () => RegisterPage()),
    GetPage(name: RouteName.home, page: () => HomePage()),
    GetPage(name: RouteName.editor, page: () => EditorPage()),
    GetPage(name: RouteName.book, page: () => BookPage()),
    GetPage(name: RouteName.create, page: () => CreatePage()),
    GetPage(name: RouteName.bookDetail, page: () => BookDetailPage()),
  ];
}

class RouteName {
  static const String login = '/login';
  static const String register = '/register';
  static const String home = '/home';
  static const String editor = '/editor';
  static const String book = '/book';
  static const String create = '/create';
  static const String bookDetail = '/bookDetail';
}
